package com.ltu.m7011e.imagine.server;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.ltu.m7011e.imagine.client.PagesService;

public class PagesServiceImpl extends RemoteServiceServlet implements PagesService
{
	@Override
	public String getPage(String page)
	{
		String message;
		
		message = "The page requested is " + page + ".<br />";
		
		String[] pages = page.split("/");
		for(int i = 0; i < pages.length; i++)
		{
			message += pages[i] + "<br />";
		}
		
		return message;
	}
}
